
import 'package:shared_preferences/shared_preferences.dart';

class SpUtils{

 static Future <void>save(key,value)async{
      SharedPreferences sp = await SharedPreferences.getInstance();
      if(value != null && value.toString().length != 0){
         sp.setString(key, value);
         print('save(key,value)async------>');
      }
  }

 static Future<String>get(key)async{
      SharedPreferences sp = await SharedPreferences.getInstance();
      return sp.getString(key);
  }

  static void remove(key)async{
      SharedPreferences sp = await SharedPreferences.getInstance();
      sp.remove(key);
  }

}